# CMakeList.txt: bluetooth 的 CMake 项目，在此处包括源代码并定义
# 项目特定的逻辑。
#
cmake_minimum_required (VERSION 3.8)

project (bluetooth)

# 将源代码添加到此项目的可执行文件。
add_executable (bluetooth_module 
                src/bluetooth_module.c
                src/key_management.c
                src/tools.c)

add_executable (mobile_terminal 
                src/mobile_terminal.c
                src/key_management.c
                src/tools.c)

include_directories (inc
                    ../libgm-c/include)

target_link_libraries (mobile_terminal gm crypto dl)

target_link_libraries (bluetooth_module gm crypto dl)

target_link_directories (mobile_terminal PRIVATE 
                        ../libgm-c/bin/linux
                        ../libgm-c/lib)

target_link_directories (bluetooth_module PRIVATE 
                        ../libgm-c/bin/linux
                        ../libgm-c/lib)

